import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const busi: AppRouteModule = {
  path: '/corp',
  name: 'Corp',
  component: LAYOUT,
  redirect: '/corp/type',
  meta: {
    orderNo: 1,
    icon: 'ant-design:database-outlined',
    title: t('routes.busi.corp.moduleName'),
  },
  children: [
    {
      path: 'type',
      name: 'CorpType',
      meta: {
        title: t('routes.busi.corp.type'),
        ignoreKeepAlive: true,
      },
      component: () => import('/@/views/busi/corp/type/index.vue'),
    },
    {
      path: 'manager',
      name: 'CorpManagement',
      meta: {
        title: t('routes.busi.corp.manager'),
        ignoreKeepAlive: true,
      },
      component: () => import('/@/views/busi/corp/index.vue'),
    },
  ],
};

export default busi;
